package com.woniuxy.qiantai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 11:56:24
 */
@Getter
@Setter
@TableName("t_cartitem")
public class Cartitem {

    @TableId(value = "id", type = IdType.AUTO)
    private  Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("product_id")
    private Integer productId;

    @TableField("count")
    private BigDecimal count;

    @TableField("sum_price")
    private BigDecimal sumPrice;

    private BigDecimal productPrice;

    private String productName;

    private  String productImgSrc;

    private Date modifyTime;

    private String shopName;

    private Integer shopId;

    private String shopImgSrc;

    @Override
    public String toString() {
        return "Cartitem{" +
                "id=" + id +
                ", userId=" + userId +
                ", productId=" + productId +
                ", count=" + count +
                ", sumPrice=" + sumPrice +
                ", productPrice=" + productPrice +
                ", productName='" + productName + '\'' +
                ", productImgSrc='" + productImgSrc + '\'' +
                ", modifyTime=" + modifyTime +
                ", shopName='" + shopName + '\'' +
                ", shopName='" + shopImgSrc + '\'' +
                ", shopId=" + shopId +
                '}';
    }
}
